package ooday04homework;

public class Master {
    void feed(Animal animal) {
        animal.eat();
        System.out.println("主人在喂动物："+animal.name);//不打点输出animal指向的派生类对象的地址
    }
}
